package com.darwin.darwinNet.events
{
	import flash.events.Event;
	
	/**
	 * 通讯错误事件 
	 * @author vanCopper
	 * 
	 */	
	public class NetErrorEvent extends Event
	{
		public var data:Object;
		public var errorCode:String;
		public var errorMsg:String;
		public var cmd:String;
		public function NetErrorEvent(type:String,data:Object=null)
		{
			super(type, false, false);
			data = data;
		}
		
		override public function clone():Event
		{
			var $e:NetErrorEvent = new NetErrorEvent(type,data);
			$e.errorCode = errorCode;
			$e.errorMsg = errorMsg;
			$e.cmd = cmd;
			return $e;
		}
		
		public static const NET_IOERROR:String = "net_ioerror";
		
		/**
		 * 请求接口 发生错误 
		 */		
		public static const NET_ERROR:String = "php_error";
		
		/**
		 * 请求接口 超时 
		 */		
		public static const TIMEOUT_ERROR:String = "timeout_error";
	}
}